<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>留言板1.0</title>
	<link rel="stylesheet" href="./temp/css/bootstrap.min.css">
	<script src="./temp/js/bootstrap.min.js"></script>
</head>
<body>
    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="./index.php">留言板</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <form class="navbar-form navbar-right">
            <div class="form-group">
              <input type="text" placeholder="Email" class="form-control">
            </div>
            <div class="form-group">
              <input type="password" placeholder="Password" class="form-control">
            </div>
            <button type="submit" class="btn btn-success">Sign in</button>
          </form>
        </div><!--/.navbar-collapse -->
      </div>
    </nav>
   <div class="container" style="margin-top: 80px;">
    
      <div class="row" style="margin-top: 50px;">
      	<div class="col-sm-12">
        <form class="form-inline" action="./save.php?key=<?php echo $key; ?>" method="post">
		  <div class="form-group">
		    <label for="exampleInputName2">姓名</label>
		    <input type="text" class="form-control" id="exampleInputName2" value="<?php echo $data['username']; ?>" name="username" placeholder="Jane Doe">
		  </div>
		  <button type="submit" class="btn btn-success">保存</button>
		  <div class="col-sm-12" style="margin-top: 20px;">
		  <textarea class="form-control" style="width: 100%" rows="3" name="content"><?php echo $data['content']; ?></textarea>
			</div>
		</form>
	</div>
	  </div>
   </div>
</body>
</html>